/**
 * @Date 2021-08-03 10:31:53
 * @Remark
 */

// lib
import PhoneCall from "react-native-phone-call";
// http
// config
// script & public
import toast from "cts/toast";
// api
// // interface && type
// 其它

// 打电话
export function callPhone(number: string) {
  const args = {
    number,
    prompt: true,
  };
  PhoneCall(args).catch();
}

// 打客服电话
export async function callServicePhoneService() {
  PhoneCall({
    number: "15008260201",
    prompt: true,
  }).catch(() => {
    toast.warn("客服暂时无法接通");
  });
}
